package org.admanager.piadladmapping.plugin.diagram.providers;

import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Set;

import org.admanager.piadladmanagement.plugin.piadladmanagement.PiadladmanagementPackage;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.Architecture2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ArchitectureEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.CBAPatternEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentMappingEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentMappingSourceEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentMappingTargetEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentPortMappingEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentPortMappingSourceEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ComponentPortMappingTargetEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorMappingEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorMappingSourceEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorMappingTargetEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorRoleMappingEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorRoleMappingSourceEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.ConnectorRoleMappingTargetEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.MappingRootEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PComponent2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PComponentEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PComponentPort2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PComponentPortEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PConnector2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PConnectorEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PConnectorRole2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PConnectorRoleEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PConstraintEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PMultiplicityEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PRoleEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.Port2EditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.PortEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.RelayEditPart;
import org.admanager.piadladmapping.plugin.diagram.edit.parts.UnificationEditPart;
import org.admanager.piadladmapping.plugin.diagram.part.PiADLADManagementMetamodelDiagramEditorPlugin;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;

/**
 * @generated
 */
public class PiADLADManagementMetamodelElementTypes {

	/**
	 * @generated
	 */
	private PiADLADManagementMetamodelElementTypes() {
	}

	/**
	 * @generated
	 */
	private static Map/*[org.eclipse.gmf.runtime.emf.type.core.IElementType, org.eclipse.emf.ecore.ENamedElement]*/elements;

	/**
	 * @generated
	 */
	private static ImageRegistry imageRegistry;

	/**
	 * @generated
	 */
	private static Set/*[org.eclipse.gmf.runtime.emf.type.core.IElementType]*/KNOWN_ELEMENT_TYPES;

	/**
	 * @generated
	 */
	public static final IElementType MappingRoot_1000 = getElementType("org.admanager.piadladmapping.plugin.diagram.MappingRoot_1000"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentPortMapping_2030 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentPortMapping_2030"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorRoleMapping_2031 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorRoleMapping_2031"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorMapping_2032 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorMapping_2032"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentMapping_2033 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentMapping_2033"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType CBAPattern_2034 = getElementType("org.admanager.piadladmapping.plugin.diagram.CBAPattern_2034"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Architecture_2035 = getElementType("org.admanager.piadladmapping.plugin.diagram.Architecture_2035"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PMultiplicity_3037 = getElementType("org.admanager.piadladmapping.plugin.diagram.PMultiplicity_3037"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PRole_3038 = getElementType("org.admanager.piadladmapping.plugin.diagram.PRole_3038"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PConstraint_3039 = getElementType("org.admanager.piadladmapping.plugin.diagram.PConstraint_3039"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PComponentPort_3040 = getElementType("org.admanager.piadladmapping.plugin.diagram.PComponentPort_3040"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PConnectorRole_3041 = getElementType("org.admanager.piadladmapping.plugin.diagram.PConnectorRole_3041"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PComponent_3042 = getElementType("org.admanager.piadladmapping.plugin.diagram.PComponent_3042"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PComponent_3043 = getElementType("org.admanager.piadladmapping.plugin.diagram.PComponent_3043"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PComponentPort_3044 = getElementType("org.admanager.piadladmapping.plugin.diagram.PComponentPort_3044"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PConnector_3045 = getElementType("org.admanager.piadladmapping.plugin.diagram.PConnector_3045"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PConnectorRole_3046 = getElementType("org.admanager.piadladmapping.plugin.diagram.PConnectorRole_3046"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PConnector_3047 = getElementType("org.admanager.piadladmapping.plugin.diagram.PConnector_3047"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Component_3048 = getElementType("org.admanager.piadladmapping.plugin.diagram.Component_3048"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Port_3049 = getElementType("org.admanager.piadladmapping.plugin.diagram.Port_3049"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Architecture_3050 = getElementType("org.admanager.piadladmapping.plugin.diagram.Architecture_3050"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Connector_3051 = getElementType("org.admanager.piadladmapping.plugin.diagram.Connector_3051"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Port_3052 = getElementType("org.admanager.piadladmapping.plugin.diagram.Port_3052"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorMappingTarget_4043 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorMappingTarget_4043"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorMappingSource_4044 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorMappingSource_4044"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorRoleMappingSource_4045 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorRoleMappingSource_4045"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentMappingSource_4046 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentMappingSource_4046"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentPortMappingSource_4047 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentPortMappingSource_4047"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentMappingTarget_4048 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentMappingTarget_4048"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentPortMappingTarget_4049 = getElementType("org.admanager.piadladmapping.plugin.diagram.ComponentPortMappingTarget_4049"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectorRoleMappingTarget_4050 = getElementType("org.admanager.piadladmapping.plugin.diagram.ConnectorRoleMappingTarget_4050"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Unification_4051 = getElementType("org.admanager.piadladmapping.plugin.diagram.Unification_4051"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Relay_4052 = getElementType("org.admanager.piadladmapping.plugin.diagram.Relay_4052"); //$NON-NLS-1$

	/**
	 * @generated
	 */
	private static ImageRegistry getImageRegistry() {
		if (imageRegistry == null) {
			imageRegistry = new ImageRegistry();
		}
		return imageRegistry;
	}

	/**
	 * @generated
	 */
	private static String getImageRegistryKey(ENamedElement element) {
		return element.getName();
	}

	/**
	 * @generated
	 */
	private static ImageDescriptor getProvidedImageDescriptor(
			ENamedElement element) {
		if (element instanceof EStructuralFeature) {
			EStructuralFeature feature = ((EStructuralFeature) element);
			EClass eContainingClass = feature.getEContainingClass();
			EClassifier eType = feature.getEType();
			if (eContainingClass != null && !eContainingClass.isAbstract()) {
				element = eContainingClass;
			} else if (eType instanceof EClass
					&& !((EClass) eType).isAbstract()) {
				element = eType;
			}
		}
		if (element instanceof EClass) {
			EClass eClass = (EClass) element;
			if (!eClass.isAbstract()) {
				return PiADLADManagementMetamodelDiagramEditorPlugin
						.getInstance().getItemImageDescriptor(
								eClass.getEPackage().getEFactoryInstance()
										.create(eClass));
			}
		}
		// TODO : support structural features
		return null;
	}

	/**
	 * @generated
	 */
	public static ImageDescriptor getImageDescriptor(ENamedElement element) {
		String key = getImageRegistryKey(element);
		ImageDescriptor imageDescriptor = getImageRegistry().getDescriptor(key);
		if (imageDescriptor == null) {
			imageDescriptor = getProvidedImageDescriptor(element);
			if (imageDescriptor == null) {
				imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
			}
			getImageRegistry().put(key, imageDescriptor);
		}
		return imageDescriptor;
	}

	/**
	 * @generated
	 */
	public static Image getImage(ENamedElement element) {
		String key = getImageRegistryKey(element);
		Image image = getImageRegistry().get(key);
		if (image == null) {
			ImageDescriptor imageDescriptor = getProvidedImageDescriptor(element);
			if (imageDescriptor == null) {
				imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
			}
			getImageRegistry().put(key, imageDescriptor);
			image = getImageRegistry().get(key);
		}
		return image;
	}

	/**
	 * @generated
	 */
	public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
		ENamedElement element = getElement(hint);
		if (element == null) {
			return null;
		}
		return getImageDescriptor(element);
	}

	/**
	 * @generated
	 */
	public static Image getImage(IAdaptable hint) {
		ENamedElement element = getElement(hint);
		if (element == null) {
			return null;
		}
		return getImage(element);
	}

	/**
	 * Returns 'type' of the ecore object associated with the hint.
	 * 
	 * @generated
	 */
	public static ENamedElement getElement(IAdaptable hint) {
		Object type = hint.getAdapter(IElementType.class);
		if (elements == null) {
			elements = new IdentityHashMap/*[org.eclipse.gmf.runtime.emf.type.core.IElementType, org.eclipse.emf.ecore.ENamedElement]*/();

			elements.put(MappingRoot_1000,
					PiadladmanagementPackage.eINSTANCE.getMappingRoot());

			elements.put(ComponentPortMapping_2030,
					PiadladmanagementPackage.eINSTANCE
							.getComponentPortMapping());

			elements.put(ConnectorRoleMapping_2031,
					PiadladmanagementPackage.eINSTANCE
							.getConnectorRoleMapping());

			elements.put(ConnectorMapping_2032,
					PiadladmanagementPackage.eINSTANCE.getConnectorMapping());

			elements.put(ComponentMapping_2033,
					PiadladmanagementPackage.eINSTANCE.getComponentMapping());

			elements.put(CBAPattern_2034,
					PiadladmanagementPackage.eINSTANCE.getCBAPattern());

			elements.put(Architecture_2035,
					PiadladmanagementPackage.eINSTANCE.getArchitecture());

			elements.put(PMultiplicity_3037,
					PiadladmanagementPackage.eINSTANCE.getPMultiplicity());

			elements.put(PRole_3038,
					PiadladmanagementPackage.eINSTANCE.getPRole());

			elements.put(PConstraint_3039,
					PiadladmanagementPackage.eINSTANCE.getPConstraint());

			elements.put(PComponentPort_3040,
					PiadladmanagementPackage.eINSTANCE.getPComponentPort());

			elements.put(PConnectorRole_3041,
					PiadladmanagementPackage.eINSTANCE.getPConnectorRole());

			elements.put(PComponent_3042,
					PiadladmanagementPackage.eINSTANCE.getPComponent());

			elements.put(PComponent_3043,
					PiadladmanagementPackage.eINSTANCE.getPComponent());

			elements.put(PComponentPort_3044,
					PiadladmanagementPackage.eINSTANCE.getPComponentPort());

			elements.put(PConnector_3045,
					PiadladmanagementPackage.eINSTANCE.getPConnector());

			elements.put(PConnectorRole_3046,
					PiadladmanagementPackage.eINSTANCE.getPConnectorRole());

			elements.put(PConnector_3047,
					PiadladmanagementPackage.eINSTANCE.getPConnector());

			elements.put(Component_3048,
					PiadladmanagementPackage.eINSTANCE.getComponent());

			elements.put(Port_3049,
					PiadladmanagementPackage.eINSTANCE.getPort());

			elements.put(Architecture_3050,
					PiadladmanagementPackage.eINSTANCE.getArchitecture());

			elements.put(Connector_3051,
					PiadladmanagementPackage.eINSTANCE.getConnector());

			elements.put(Port_3052,
					PiadladmanagementPackage.eINSTANCE.getPort());

			elements.put(ConnectorMappingTarget_4043,
					PiadladmanagementPackage.eINSTANCE
							.getConnectorMapping_Target());

			elements.put(ConnectorMappingSource_4044,
					PiadladmanagementPackage.eINSTANCE
							.getConnectorMapping_Source());

			elements.put(ConnectorRoleMappingSource_4045,
					PiadladmanagementPackage.eINSTANCE
							.getConnectorRoleMapping_Source());

			elements.put(ComponentMappingSource_4046,
					PiadladmanagementPackage.eINSTANCE
							.getComponentMapping_Source());

			elements.put(ComponentPortMappingSource_4047,
					PiadladmanagementPackage.eINSTANCE
							.getComponentPortMapping_Source());

			elements.put(ComponentMappingTarget_4048,
					PiadladmanagementPackage.eINSTANCE
							.getComponentMapping_Target());

			elements.put(ComponentPortMappingTarget_4049,
					PiadladmanagementPackage.eINSTANCE
							.getComponentPortMapping_Target());

			elements.put(ConnectorRoleMappingTarget_4050,
					PiadladmanagementPackage.eINSTANCE
							.getConnectorRoleMapping_Target());

			elements.put(Unification_4051,
					PiadladmanagementPackage.eINSTANCE.getUnification());

			elements.put(Relay_4052,
					PiadladmanagementPackage.eINSTANCE.getRelay());
		}
		return (ENamedElement) elements.get(type);
	}

	/**
	 * @generated
	 */
	private static IElementType getElementType(String id) {
		return ElementTypeRegistry.getInstance().getType(id);
	}

	/**
	 * @generated
	 */
	public static boolean isKnownElementType(IElementType elementType) {
		if (KNOWN_ELEMENT_TYPES == null) {
			KNOWN_ELEMENT_TYPES = new HashSet/*[org.eclipse.gmf.runtime.emf.type.core.IElementType]*/();
			KNOWN_ELEMENT_TYPES.add(MappingRoot_1000);
			KNOWN_ELEMENT_TYPES.add(ComponentPortMapping_2030);
			KNOWN_ELEMENT_TYPES.add(ConnectorRoleMapping_2031);
			KNOWN_ELEMENT_TYPES.add(ConnectorMapping_2032);
			KNOWN_ELEMENT_TYPES.add(ComponentMapping_2033);
			KNOWN_ELEMENT_TYPES.add(CBAPattern_2034);
			KNOWN_ELEMENT_TYPES.add(Architecture_2035);
			KNOWN_ELEMENT_TYPES.add(PMultiplicity_3037);
			KNOWN_ELEMENT_TYPES.add(PRole_3038);
			KNOWN_ELEMENT_TYPES.add(PConstraint_3039);
			KNOWN_ELEMENT_TYPES.add(PComponentPort_3040);
			KNOWN_ELEMENT_TYPES.add(PConnectorRole_3041);
			KNOWN_ELEMENT_TYPES.add(PComponent_3042);
			KNOWN_ELEMENT_TYPES.add(PComponent_3043);
			KNOWN_ELEMENT_TYPES.add(PComponentPort_3044);
			KNOWN_ELEMENT_TYPES.add(PConnector_3045);
			KNOWN_ELEMENT_TYPES.add(PConnectorRole_3046);
			KNOWN_ELEMENT_TYPES.add(PConnector_3047);
			KNOWN_ELEMENT_TYPES.add(Component_3048);
			KNOWN_ELEMENT_TYPES.add(Port_3049);
			KNOWN_ELEMENT_TYPES.add(Architecture_3050);
			KNOWN_ELEMENT_TYPES.add(Connector_3051);
			KNOWN_ELEMENT_TYPES.add(Port_3052);
			KNOWN_ELEMENT_TYPES.add(ConnectorMappingTarget_4043);
			KNOWN_ELEMENT_TYPES.add(ConnectorMappingSource_4044);
			KNOWN_ELEMENT_TYPES.add(ConnectorRoleMappingSource_4045);
			KNOWN_ELEMENT_TYPES.add(ComponentMappingSource_4046);
			KNOWN_ELEMENT_TYPES.add(ComponentPortMappingSource_4047);
			KNOWN_ELEMENT_TYPES.add(ComponentMappingTarget_4048);
			KNOWN_ELEMENT_TYPES.add(ComponentPortMappingTarget_4049);
			KNOWN_ELEMENT_TYPES.add(ConnectorRoleMappingTarget_4050);
			KNOWN_ELEMENT_TYPES.add(Unification_4051);
			KNOWN_ELEMENT_TYPES.add(Relay_4052);
		}
		return KNOWN_ELEMENT_TYPES.contains(elementType);
	}

	/**
	 * @generated
	 */
	public static IElementType getElementType(int visualID) {
		switch (visualID) {
		case MappingRootEditPart.VISUAL_ID:
			return MappingRoot_1000;
		case ComponentPortMappingEditPart.VISUAL_ID:
			return ComponentPortMapping_2030;
		case ConnectorRoleMappingEditPart.VISUAL_ID:
			return ConnectorRoleMapping_2031;
		case ConnectorMappingEditPart.VISUAL_ID:
			return ConnectorMapping_2032;
		case ComponentMappingEditPart.VISUAL_ID:
			return ComponentMapping_2033;
		case CBAPatternEditPart.VISUAL_ID:
			return CBAPattern_2034;
		case ArchitectureEditPart.VISUAL_ID:
			return Architecture_2035;
		case PMultiplicityEditPart.VISUAL_ID:
			return PMultiplicity_3037;
		case PRoleEditPart.VISUAL_ID:
			return PRole_3038;
		case PConstraintEditPart.VISUAL_ID:
			return PConstraint_3039;
		case PComponentPortEditPart.VISUAL_ID:
			return PComponentPort_3040;
		case PConnectorRoleEditPart.VISUAL_ID:
			return PConnectorRole_3041;
		case PComponentEditPart.VISUAL_ID:
			return PComponent_3042;
		case PComponent2EditPart.VISUAL_ID:
			return PComponent_3043;
		case PComponentPort2EditPart.VISUAL_ID:
			return PComponentPort_3044;
		case PConnectorEditPart.VISUAL_ID:
			return PConnector_3045;
		case PConnectorRole2EditPart.VISUAL_ID:
			return PConnectorRole_3046;
		case PConnector2EditPart.VISUAL_ID:
			return PConnector_3047;
		case ComponentEditPart.VISUAL_ID:
			return Component_3048;
		case PortEditPart.VISUAL_ID:
			return Port_3049;
		case Architecture2EditPart.VISUAL_ID:
			return Architecture_3050;
		case ConnectorEditPart.VISUAL_ID:
			return Connector_3051;
		case Port2EditPart.VISUAL_ID:
			return Port_3052;
		case ConnectorMappingTargetEditPart.VISUAL_ID:
			return ConnectorMappingTarget_4043;
		case ConnectorMappingSourceEditPart.VISUAL_ID:
			return ConnectorMappingSource_4044;
		case ConnectorRoleMappingSourceEditPart.VISUAL_ID:
			return ConnectorRoleMappingSource_4045;
		case ComponentMappingSourceEditPart.VISUAL_ID:
			return ComponentMappingSource_4046;
		case ComponentPortMappingSourceEditPart.VISUAL_ID:
			return ComponentPortMappingSource_4047;
		case ComponentMappingTargetEditPart.VISUAL_ID:
			return ComponentMappingTarget_4048;
		case ComponentPortMappingTargetEditPart.VISUAL_ID:
			return ComponentPortMappingTarget_4049;
		case ConnectorRoleMappingTargetEditPart.VISUAL_ID:
			return ConnectorRoleMappingTarget_4050;
		case UnificationEditPart.VISUAL_ID:
			return Unification_4051;
		case RelayEditPart.VISUAL_ID:
			return Relay_4052;
		}
		return null;
	}

}
